﻿{template 'common/header-base'}
<style type="text/css">
    .table {
    table-layout: fixed !important;
}
.nav-width li.active {
    margin-right: 00px;}
.nav-width li.normal {
    margin-right: 0px}
</style>

<header>

<a href="{url 'account/display'}" class="header_l"><h1 class="logo">微信号营销致力成为微信·互联综合解决方案服务商！</h1></a>
{if !empty($_W['uniacid']) && !defined('IN_MESSAGE')}
<ul class="header_nav">
     
            <li><a href="{url 'home/welcome/platform'}" target="_blank"><i class="fa fa-share"></i>&nbsp;&nbsp;继续管理公众号（{$_W['account']['name']}）</a></li>   
</ul>
{/if}
    <div class="header_r">
    <ul class="nav navbar-nav navbar-right">

    <li class="dropdown topbar-notice"><a type="button" data-toggle="dropdown"><i class="fa fa-bell"></i> 
<span class="badge" id="notice-total">0</span></a>
<div class="dropdown-menu" aria-labelledby="dLabel">
<div class="topbar-notice-panel">
<div class="topbar-notice-arrow"></div>
<div class="topbar-notice-head"><span>系统公告</span> 
</div>
<div class="topbar-notice-body"><ul id="notice-container"></ul></div>
<button class="btn btn-primary btn-square btn-block" onclick = " window.location.href='{php echo url('article/notice-show/list');}'; ">更多公告</button>
</div></div></li>
  <li class="dropdown dropdown-user">
<a href="javascript:;" class="dropdown-toggle hover-initialized header_avatar" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">

            <img class="avatar" src="{php echo tomedia('headimg_'.$_W['account']['acid'].'.jpg')}?time={php echo time()}" onerror="this.src='resource/images/gw-wx.gif'" alt="{$_W['account']['name']}" >
            <strong class="header_name">{if $_W['account']['name'] == null } 请选择公众号{/if}
            {$_W['account']['name']}</strong>
                   
</a>
<ul class="dropdown-menu dropdown-menu-default">
 <li class="dropdown-header"></i>{$_W['user']['username']} ({if $_W['role'] == 'founder'}系统管理员{elseif $_W['role'] == 'manager'}公众号管理员{else}公众号操作员{/if}) </li>
 {if $_W['role'] != 'operator'}
 <li class="divider"></li>
                        <li><a href="{url 'account/post' array('uniacid' => $_W['uniacid'])}" target="_blank"><i class="fa fa-weixin fa-fw"></i> 编辑公众号资料</a></li>
                        {/if}
                        <li><a href="{url 'account/display'}" target="_blank"><i class="fa fa-cogs fa-fw"></i> 管理其它公众号</a></li>
                        <li><a href="{url 'utility/emulator'}" target="_blank"><i class="fa fa-mobile fa-fw"></i> 模拟测试</a></li>
<li class="divider"></li>
                <li><a href="{url 'user/profile/profile'}"><i class="fa fa-pencil-square-o fa-fw"></i>&nbsp;修改密码</a></li>
                <li><a href="{url 'user/profile/base'}"><i class="fa fa-user fa-fw"></i>&nbsp;个人信息</a></li>
{if $_W['role'] == 'founder'}
                <li class="divider"></li>
                <li><a href="{url 'system/welcome'}" target="_blank"><i class="fa fa-sitemap fa-fw"></i>&nbsp;系统选项</a></li>
           
                <li><a href="{url 'system/updatecache'}" target="_blank"><i class="fa fa-refresh fa-fw"></i>&nbsp;更新缓存</a></li>
                
                        {/if}
        
</ul>

</li>
  <li id="logout">
            <a href="{url 'user/logout'}" class="header_icon" title="注销">
                <i class="icon icon_logout"></i>
            </a>
        </li>
</ul>

    </div>
</header>


<div class="main">

    <!-- 主内容 -->
    <section>
        <div class="section_main">
            <div class="section_auto">
               <div class="ui_tab_contents">
                 <div class="notice_body">

            	{if defined('IN_MESSAGE')}
		<div>
			<div class="jumbotron clearfix alert alert-{$label}">
				<div class="row">
					<div class="col-xs-12 col-sm-4 col-md-3 col-lg-2">
						<i class="fa fa-5x fa-{if $label=='success'}check-circle{/if}{if $label=='danger'}times-circle{/if}{if $label=='info'}info-circle{/if}{if $label=='warning'}exclamation-triangle{/if}"></i>
					</div>
					<div class="col-xs-12 col-sm-8 col-md-9 col-lg-10">
						{if is_array($msg)}
							<h2>MYSQL 错误：</h2>
							<p>{php echo cutstr($msg['sql'], 300, 1);}</p>
							<p><b>{$msg['error'][0]} {$msg['error'][1]}：</b>{$msg['error'][2]}</p>
						{else}
						<h2>{$caption}</h2>
						<p>{$msg}</p>
						{/if}
						{if $redirect}
						<p><a href="{$redirect}" class="alert-link">如果你的浏览器没有自动跳转，请点击此链接</a></p>
						<script type="text/javascript">
							setTimeout(function () {
								location.href = "{$redirect}";
							}, 3000);
						</script>
						{else}
							<p>[<a href="javascript:history.go(-1);" class="alert-link">点击这里返回上一页</a>] &nbsp; [<a href="./?refresh" class="alert-link">首页</a>]</p>
						{/if}
					</div>
				</div>
			</div>
		{else}
		<div class="well">
		{/if}
		<script>
	require(['jquery'],function($){
		var h = document.documentElement.clientHeight;
		$(".gw-container").css('min-height',h);
	});
</script>


  